<template>
  <div class="back" :style="styCss" @click="onBack">&lt; 返回</div>
</template>

<script lang="ts" setup>
import { useRouter } from 'vue-router'

const router = useRouter()
const onBack = () => {
  router.go(-1)
}

defineProps({
  styCss: {
    type: Object
  }
})
</script>

<style lang="less" scoped>
.back {
  color: rgb(0, 119, 255);
  padding: 0 10px;
}
</style>
